package thread;

public class TestThread {

	public static void main(String[] args) {
		Thread t=new MyThread();
		for(int i=0;i<1000;i++) {
			if(i==100) {
				t.start();
			}
			System.out.println(Thread.currentThread()+"....."+i);
		}

	}
}
class MyThread extends Thread{
	@Override
	public void run() {
		for(int i=0;i<1000;i++) {
			System.out.println(Thread.currentThread()+"*******"+i);
		}
	}
}
